@font-face {
  font-family: "webfont";
  font-display: swap;
  src: url("../assets/fonts/web_fonts/webfont.eot");
  /* IE9 */
  src: url("../assets/fonts/web_fonts/webfont.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-IE8 */ url("../assets/fonts/web_fonts/webfont.woff2") format("woff2"),
    url("../assets/fonts/web_fonts/webfont.woff") format("woff"),
    /* chrome、firefox */ url("../assets/fonts/web_fonts/webfont.ttf")
      format("truetype"),
    /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
      url("../assets/fonts/web_fonts/webfont.svg#webfont") format("svg");
  /* iOS 4.1- */
}

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

.web-font {
  font-family: "webfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

*,
body,
html {
  margin: 0;
  padding: 0;
  transition: all ease-in 0.3s;
  /* 实现返回顶部的缓动画效果 */
  scroll-behavior: smooth;
}

img {
  width: 100%;
  height: 100%;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

a {
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/*正常的未被访问过的链接*/
a:link {
  text-decoration: none;
}

/*已经访问过的链接*/
a:visited {
  text-decoration: none;
}

/*鼠标划过(停留)的链接*/
a:hover {
  color: #409eff;
  text-decoration: none;
}

/* 正在点击的链接，鼠标在元素上按下还没有松开*/
a:active {
  text-decoration: none;
}

/* 获得焦点的时候 鼠标松开时显示的颜色*/
a:focus {
  text-decoration: none;
}

.heading_1 {
  font-weight: 600;
  color: #000;
}

.heading_2 {
  padding-left: 1rem;
}

.heading_3 {
  padding-left: 2rem;
}

.heading_4 {
  padding-left: 3rem;
}

.heading_5 {
  padding-left: 4rem;
}

.heading_6 {
  padding-left: 5rem;
}

/*设置滚动条 */

::-webkit-scrollbar-thumb {
  background-color: #333;
  height: 50px;
  outline-offset: -2px;
  outline: 2px solid #fff;
  -webkit-border-radius: 4px;
  border: 2px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #f333;
  height: 50px;
  -webkit-border-radius: 4px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track-piece {
  background-color: #fff;
  -webkit-border-radius: 0;
}

/* 目录栏 样式 */
.bytemd_toc {
  list-style: none;
}
.bytemd_toc .bytemd_toc--item {
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
}

.bytemd_toc .bytemd_toc--item:hover {
  color: #4f8ef5;
}

.bytemd_toc .bytemd_toc--active::before {
  content: "";
  height: 100%;
  background-color: #4f8ef5;
  position: absolute;
  left: 0;
  top: 0;
  width: 0.2rem;
}

.bytemd_toc .bytemd_toc--level1 {
  padding-left: 0.5rem;
}

.bytemd_toc .bytemd_toc--level2 {
  padding-left: 1rem;
}

.bytemd_toc .bytemd_toc--level3 {
  padding-left: 1.5rem;
}

.bytemd_toc .bytemd_toc--level4 {
  padding-left: 2rem;
}
